<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@ include file="/WEB-INF/jsp/common_include_top.jsp" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>


<body>
<!-- Card Container top  -->
<%@ include file="/WEB-INF/jsp/common_card_top.jsp" %>


<div id="content">
<!-- Main Content -->
<div align="center" class="page_title">
 数据库备份与恢复
</div>
<c:if test="${!empty operationMsg}">
  	<div align="left"><b><font color="RED"><c:out value="${operationMsg}"/></font></b></div>
</c:if>
<div>
<form action="<c:url value="/backupDb.do"/>" method="post">
<input type="submit" class="button_blue" value="备份"/>
</form>

</div>
<div>
<c:if test="${not empty backupFileName}">
<a href="<c:url value="/getFile.do?name=${backupFileName}"/>">下载备份sql文件</a>
</c:if>
</div>
<form action="<c:url value="/restoreDb.do"/>" method="post" enctype="multipart/form-data">
<div id="uploadContainer">
 	<div style="height:40px;">
 	<div id="upload1" style='float:left;'></div>
 	<input type="file" name="restoreFile"/>
 	<input type="submit" class="button_blue" value="恢复"/>
 	</div>
</div>
</form>

</div>
<!--End of Main Content -->

<!-- Card Container bottom  -->
<%@ include file="/WEB-INF/jsp/common_card_bottom.jsp"%>
<!-- body bottom -->
<%@ include file="/WEB-INF/jsp/common_include_bottom.jsp"%>